﻿using System;
using System.IO;
using System.Web;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.system.workflow.flow_sign
{
    public partial class sign_delete : ModulePage
    {       

        protected void Page_Load(object sender, EventArgs e)
        {
            int num = (Request.QueryString["sign_id"] == null) ? 0 : int.Parse(Request.QueryString["sign_id"].ToString());
            new FlowSignDao().Delete(base.Conn, num);
            if (File.Exists(Server.MapPath("/module/oc") + "/sign_" + num.ToString() + ".esp"))
            {
                File.Delete(Server.MapPath("/module/oc") + "/sign_" + num.ToString() + ".esp");
            }
            this.litMessage.Text = base.ShowPrompt("删除印章成功！", "index.aspx");
        }
      
    }
}

